package com.tongtech.space.common.exception;

/**
 * 自定义业务异常
 * 如果当前业务逻辑无法走正常流程,可以主动直接抛出此异常,并在全局异常返回配置中捕获此异常进行统一处理,返回友好提示
 * 切勿滥用!
 *
 * @author jiayu
 * @since 2020/12/14
 */
public class BusinessException extends RuntimeException {
    private static final long serialVersionUID = 1L;

    public BusinessException() {
        super();
    }

    public BusinessException(String message) {
        super(message);
    }

    public BusinessException(String message, Throwable cause) {
        super(message, cause);
    }

    public BusinessException(Throwable cause) {
        super(cause);
    }

    protected BusinessException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
